package com.lichuandi.service.impl;

import com.lichuandi.abstrct.ReportGenerator;
import org.springframework.stereotype.Service;

@Service
public class SalesReportGenerator extends ReportGenerator {
    @Override
    protected void collectData() {
        System.out.println("Collecting sales data from database...");
    }

    @Override
    protected void processData() {
        System.out.println("Processing sales data...");
    }

    @Override
    protected boolean shouldSendEmail() {
        return true; // 覆盖hook方法
    }
}